package com.yalu.entity.data;

import java.io.Serializable;

import javax.persistence.Embeddable;

import org.apache.commons.lang.StringUtils;

@Embeddable
public class ExpressfeesKey implements Serializable{


	private static final long serialVersionUID = 3083984295555252419L;

	private String exp_code;
	private String exp_id;


	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass().getPackage() != obj.getClass().getPackage()) {
			return false;
		}
		final ExpressfeesKey other = (ExpressfeesKey) obj;
		return StringUtils.equals(exp_code, other.getExp_code())
				&& StringUtils.equals(exp_id, other.getExp_id());
	}

	@Override
	public int hashCode() {
		return exp_id == null ? System.identityHashCode(this) : exp_id.hashCode();
	}

	public String getExp_code() {
		return exp_code;
	}

	public void setExp_code(String exp_code) {
		this.exp_code = exp_code;
	}

	public String getExp_id() {
		return exp_id;
	}

	public void setExp_id(String exp_id) {
		this.exp_id = exp_id;
	}




}
